package com.lottery.material.service.portal.article.impl;

import com.lottery.material.dao.base.BaseDao;
import com.lottery.material.dao.portal.article.ArticleInfoDao;
import com.lottery.material.entity.article.ArticleInfo;
import com.lottery.material.service.base.impl.BaseServiceImpl;
import com.lottery.material.service.portal.article.ArticleInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author:houjie
 * @Description: 发帖接口实现类
 * @Date:Create in 2019/4/9 15:17
 */
@Service
@Slf4j
public class ArticleInfoServiceImpl extends BaseServiceImpl<ArticleInfo, Integer> implements ArticleInfoService {

    @Autowired
    private ArticleInfoDao articleInfoDao;

    @Override
    public BaseDao<ArticleInfo, Integer> getBaseDao() {
        return articleInfoDao;
    }

    @Override
    public List<ArticleInfo> findTheDayByUserIdAndCircleId(String userId, String circleId, String nowDate) {
        return articleInfoDao.findTheDayByUserIdAndCircleId(userId,Integer.valueOf(circleId),nowDate);
    }
}
